//package hht.dragon.blog.configuration;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.reactive.config.CorsRegistry;
//import org.springframework.web.reactive.config.WebFluxConfigurationSupport;
//
///**
// * Description.
// * User: huang
// * Date: 18-6-23
// */
//@Configuration
//public class CorsConfiguration extends WebFluxConfigurationSupport {
//
//    @Override
//    public void addCorsMappings(CorsRegistry registry) {
//        registry.addMapping("/**")
//                .allowedOrigins("*")
//                .allowCredentials(true)
//                .allowedMethods("GET", "POST", "DELETE", "PUT")
//                .maxAge(3600);
//    }
//
//}
